using System;
using System.Web.UI;
using System.Xml;
using umbraco.cms.businesslogic.macro;

namespace umbracoMemberControls.packageFiles
{
    /// <summary>
    /// Summary description for GetXml.
    /// </summary>
    public partial class GetXml : Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            XmlDocument xd = new XmlDocument();
            xd.LoadXml("<package/>");
            XmlElement macros = xd.CreateElement("macros");
            Macro m = new Macro(6);
            if (m != null)
                macros.AppendChild(m.ToXml(xd));
            m = new Macro(7);
            if (m != null)
                macros.AppendChild(m.ToXml(xd));
            m = new Macro(8);
            if (m != null)
                macros.AppendChild(m.ToXml(xd));

            xd.DocumentElement.AppendChild(macros);
            Response.Write(xd.OuterXml);
        }

        #region Web Form Designer generated code

        protected override void OnInit(EventArgs e)
        {
            //
            // CODEGEN: This call is required by the ASP.NET Web Form Designer.
            //
            InitializeComponent();
            base.OnInit(e);
        }

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
        }

        #endregion
    }
}